import request from '@/utils/request'

// 查询岗位管理列表
export function listPositions(query) {
  return request({
    url: '/positions/positions/list',
    method: 'get',
    params: query
  })
}

// 查询岗位管理详细
export function getPositions(positionId) {
  return request({
    url: '/positions/positions/' + positionId,
    method: 'get'
  })
}

// 新增岗位管理
export function addPositions(data) {
  return request({
    url: '/positions/positions',
    method: 'post',
    data: data
  })
}

// 修改岗位管理
export function updatePositions(data) {
  return request({
    url: '/positions/positions',
    method: 'put',
    data: data
  })
}

// 删除岗位管理
export function delPositions(positionId) {
  return request({
    url: '/positions/positions/' + positionId,
    method: 'delete'
  })
}
